package com.zlp.service.impl;

import com.zlp.entity.Permission;
import com.zlp.mapper.PermissionMapper;
import com.zlp.service.PermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 后台用户权限表 服务实现类
 * </p>
 *
 * @author LiPing.Zou
 * @since 2021-03-15
 */
@Service
@Slf4j(topic = "PermissionServiceImpl")
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    @Resource
    private PermissionMapper permissionMapper;


    @Override
    public List<Permission> getPermissionList(Long userId) {

        log.info("getPermissionList.req userId={}",userId);
        return permissionMapper.getPermissionList(userId);
    }

}
